package utilities;

import helper.IOFile;

import java.util.ArrayList;

public class UtilityKindKeyword {
	private final String KEY_MOVIE_FILE_NAME = "data/dictionary/dict_Movie.txt";
	private final String KEY_MUSIC_FILE_NAME = "data/dictionary/dict_Music.txt";
	private final String KEY_NEWS_FILE_NAME = "data/dictionary/dict_News.txt";
	private final String KEY_SPORT_FILE_NAME = "data/dictionary/dict_Sport.txt";
	private final String KEY_SCIENCES_FILE_NAME = "data/dictionary/dict_Sciences.txt";
	private final String KEY_GAMESHOW_FILE_NAME = "data/dictionary/dict_GameShow.txt";
	
	private  ArrayList<String> arrayKeyMovie ;
	private  ArrayList<String> arrayKeyMusic ;
	private  ArrayList<String> arrayKeySport ;
	private  ArrayList<String> arrayKeySciences ;
	private  ArrayList<String> arrayKeyNews ;
	private  ArrayList<String> arrayKeyGameShow ;
	
	private final IOFile ioFile;
	
	public UtilityKindKeyword(){
		arrayKeyMovie = new ArrayList<String>();
		arrayKeyMusic = new ArrayList<String>();
		arrayKeySport = new ArrayList<String>();
		arrayKeySciences = new ArrayList<String>();
		arrayKeyNews = new ArrayList<String>();
		arrayKeyGameShow = new ArrayList<String>();
		
		ioFile = new IOFile();
		
		getKeyKind();
	}
	public final void getKeyKind(){
    	arrayKeyMovie = ioFile.readFileToArray(KEY_MOVIE_FILE_NAME, -1);
    	arrayKeyMusic = ioFile.readFileToArray(KEY_MUSIC_FILE_NAME, -1);
    	arrayKeyNews = ioFile.readFileToArray(KEY_NEWS_FILE_NAME, -1);
    	arrayKeySciences = ioFile.readFileToArray(KEY_SCIENCES_FILE_NAME, -1);
    	arrayKeySport = ioFile.readFileToArray(KEY_SPORT_FILE_NAME, -1);
    	arrayKeyGameShow = ioFile.readFileToArray(KEY_GAMESHOW_FILE_NAME, -1);
    	
    }
	public ArrayList<String> getArrayKeyMovie() {
		return arrayKeyMovie;
	}

	public ArrayList<String> getArrayKeyMusic() {
		return arrayKeyMusic;
	}

	public ArrayList<String> getArrayKeySport() {
		return arrayKeySport;
	}

	public ArrayList<String> getArrayKeySciences() {
		return arrayKeySciences;
	}

	public ArrayList<String> getArrayKeyNews() {
		return arrayKeyNews;
	}

	public ArrayList<String> getArrayKeyGameShow() {
		return arrayKeyGameShow;
	}

	public void setArrayKeyMovie(ArrayList<String> arrayKeyMovie) {
		this.arrayKeyMovie = arrayKeyMovie;
	}

	public void setArrayKeyMusic(ArrayList<String> arrayKeyMusic) {
		this.arrayKeyMusic = arrayKeyMusic;
	}

	public void setArrayKeySport(ArrayList<String> arrayKeySport) {
		this.arrayKeySport = arrayKeySport;
	}

	public void setArrayKeySciences(ArrayList<String> arrayKeySciences) {
		this.arrayKeySciences = arrayKeySciences;
	}

	public void setArrayKeyNews(ArrayList<String> arrayKeyNews) {
		this.arrayKeyNews = arrayKeyNews;
	}

	public void setArrayKeyGameShow(ArrayList<String> arrayKeyGameShow) {
		this.arrayKeyGameShow = arrayKeyGameShow;
	}

}
